package com.xiaoxing.zhinenghuacangku_liaocheng.mvp.ui.adapter;

import android.content.Context;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.xiaoxing.zhinenghuacangku_liaocheng.R;
import com.xiaoxing.zhinenghuacangku_liaocheng.mvp.ui.entity.LiaoCheng_TuiKuFanHuiLieBiao;

import java.util.List;

//import me.jessyan.armscomponent.commonres.utils.GlideUtil;


public class LiaoCheng_TuiKuFanHuiLieBiaoAdapter extends BaseQuickAdapter<LiaoCheng_TuiKuFanHuiLieBiao, BaseViewHolder> {

    private Context mContext;

    public LiaoCheng_TuiKuFanHuiLieBiaoAdapter(Context context, @Nullable List<LiaoCheng_TuiKuFanHuiLieBiao> data) {
        super(R.layout.item_liao_cheng__tui_ku_fan_hui_lie_biao, data);
        this.mContext = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, LiaoCheng_TuiKuFanHuiLieBiao item) {
        //GlideUtil.loadImage(mContext,item.getImg(),helper.getView(R.id.img_head));
        helper.setText(R.id.tv_chu_ku_dan_hao, item.getOut_storagelist_batchid());
        helper.setText(R.id.tv_xiang_mu_ming_cheng, item.getProjectname());
        helper.setText(R.id.tv_wu_liao_ming_cheng, item.getMaterial());
        helper.setText(R.id.tv_ti_huo_ren, item.getReceive_userName());
        helper.setText(R.id.tv_ti_huo_ren_shou_ji_hao, item.getReceive_userPhone());
        helper.setText(R.id.tv_mu_di_xiang_mu, item.getTarget_project());
        helper.setText(R.id.tv_ku_wei, item.getSpacename());
        helper.setText(R.id.tv_jie_shou_di_zhi, item.getReceive_address());
        helper.setText(R.id.tv_tuo_pan_hao, item.getSALVERID());
        helper.setText(R.id.tv_wu_liao_id, item.getMid());
    }

}
